<?php

require_once "core/application/models/mpremiums/mpremiums1.php";

class Mpremium2 extends Mpremium1 {

    private $_query;

    protected function add_prem($account, $membership, $expire) {
        /**
         *  новый премиум
         * @param string $account
         * @param string $membershio
         * @param date $expire
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "UPDATE `account_data` SET `membership` = '$membership', `expire` = '$expire' WHERE `name` = '$account' ";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
